package cn.icebreak.cartoon.global;

import android.app.Activity;
import android.content.Intent;

import cn.icebreak.cartoon.ui.ConsummateInfoActivity;
import cn.icebreak.cartoon.ui.LoginActivity;
import cn.icebreak.cartoon.ui.DetailActivity;
import cn.icebreak.cartoon.ui.read.ReadActivity;

public class Route {

    /**
     * 跳到详情页
     *
     * @param activity
     */
    public static void j2Detail(Activity activity) {
        activity.startActivity(new Intent(activity, DetailActivity.class));
    }

    /**
     * 跳到阅读页
     *
     * @param activity
     */
    public static void j2Read(Activity activity) {
        activity.startActivity(new Intent(activity, ReadActivity.class));
    }

    public static void j2Login(Activity activity) {
        activity.startActivity(new Intent(activity, LoginActivity.class));
    }

    public static void j2ConsummateInfo(Activity activity){
        activity.startActivity(new Intent(activity, ConsummateInfoActivity.class));
    }
}
